<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width,initial-scale=1,user-scalable=0">
<meta name="apple-mobile-web-app-capable" content="yes"/>
<meta name="apple-mobile-web-app-status-bar-style" content="black"/>
<meta content="telephone=yes" name="format-detection" />
<title>网盘</title>
<link rel="stylesheet" href="/css/weui.min.css">
<link rel="stylesheet" href="/css/jquery-weui.min.css">
<link href="/css/main.css" rel="stylesheet" type="text/css" />
</head>
<body ontouchstart>
<div class="main">
	<div class="pldIcon"></div>
	<div class="pInfoBar">您尚未开通网盘，是否申请开通</div>

	<!--按钮区域-->
	<div class="uploadBtnList btn">
		<a href="javascript:;" class="weui-btn weui-btn_primary" id="apply">申请</a>
	</div>
	<!--按钮区域end-->
</div>
<script src="/js/jquery.min.js"></script>
<script src="/js/jquery-weui.min.js"></script>
<script>
$(function() {
	$('#apply').click(function(){
		$.ajax({
			type: 'get',
			url: ' /apply_netdisk',
			dataType: 'json',
			success: function (result) {
				if (result.code == 0) {
					location.href = '/apply_success';
				}else if(result.code == 1){
					$('.uploadBtnList').hide();
					$('.pInfoBar').html("24小时内您已提交申请");
				}else if(result.code == -1){
					$('.uploadBtnList').hide();
					$('.pInfoBar').html("你的账户登录信息已过期，请重新登录");
				}
			}
		});
	});
});

</script>
	
</body>
</html>
